# $Id: PKGBUILD 70182 2012-05-01 12:27:33Z andrea $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=libgringotts
pkgver=1.2.1
pkgrel=10
pkgdesc="Encryption backend for Gringotts"
arch=('i686' 'x86_64')
url="http://developer.berlios.de/projects/gringotts"
license=('GPL')
depends=('bzip2' 'libmcrypt' 'mhash' 'zlib')
changelog=$pkgname.changelog
options=('!libtool')
source=(http://download.berlios.de/gringotts/$pkgname-$pkgver.tar.bz2)
md5sums=('b2b1bad56ef33153f251ccd9500860be')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install

  rm -fr ${pkgdir}/usr/share
}
